<%@ page contentType="text/html;charset=UTF-8" language="java" session="true" %>
<html lang="zh">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>登录</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="../vendors/mdi/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="../vendors/base/vendor.bundle.base.css">
    <!-- endinject -->
    <!-- plugin css for this page -->
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <link rel="stylesheet" href="../css/style.css">
    <!-- endinject -->
    <link rel="shortcut icon" href="../images/favicon.png"/>
</head>

<body>
<div class="container-scroller">
    <div class="container-fluid page-body-wrapper full-page-wrapper">
        <div class="content-wrapper d-flex align-items-stretch auth auth-img-bg">
            <div class="row flex-grow">
                <div class="col-lg-6 d-flex align-items-center justify-content-center">
                    <div class="auth-form-transparent text-left p-3">
                        <h4>学生教务管理系统</h4>
                        <h6 class="font-weight-light">XUE SHENG JIAO WU GAUN LI XI TONG</h6>
                        <form class="pt-3" action="../manage/login.jsp" method="post">
                            <div class="form-group">
                                <label>邮箱</label>
                                <div class="input-group">
                                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-account-outline text-primary"></i>
                      </span>
                                    </div>
                                    <input required type="text" class="form-control form-control-lg border-left-0"
                                           name="email" placeholder="请输入邮箱">
                                </div>
                            </div>
                            <div class="form-group">
                                <label>密码</label>
                                <div class="input-group">
                                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-lock-outline text-primary"></i>
                      </span>
                                    </div>
                                    <input required type="password" class="form-control form-control-lg border-left-0"
                                           name="password" placeholder="请输入密码">
                                </div>
                            </div>
                            <!-- <div class="my-2 d-flex justify-content-between align-items-center">
                              <div class="form-check">
                                <label class="form-check-label text-muted">
                                  <input type="checkbox" class="form-check-input">
                                  Keep me signed in
                                </label>
                              </div>
                              <a href="#" class="auth-link text-black">Forgot password?</a>
                            </div> -->
                            <div class="my-3">
                                <!-- <a class="btn btn-block btn-primary btn-lg font-weight-medium auth-form-btn" href="../../index.html">登录</a></a> -->
                                <button type="submit"
                                        class="btn btn-block btn-primary btn-lg font-weight-medium auth-form-btn">登&nbsp;录
                                </button>
                            </div>
                            <div class="text-center mt-4 font-weight-light" style="font-size:14px;">
                                没有账号? <a href="register.jsp" class="text-primary">注册</a></a>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- 版权块 -->
                <div class="col-lg-6 login-half-bg d-flex flex-row">
                    <p class="text-white font-weight-medium text-center flex-grow align-self-end">Copyright &copy; 2023
                        by xie392</p>
                </div>
            </div>
        </div>
        <!-- content-wrapper ends -->
    </div>
    <!-- page-body-wrapper ends -->
</div>

<%--inculde 权限认证--%>
<script src="../js/toast.js"></script>
<jsp:include page="../include/permissions.jsp"/>
<%--<%--%>
<%--    Object obj = session.getAttribute("email");--%>
<%--    if (obj != null) {--%>
<%--        response.sendRedirect("../index.jsp");--%>
<%--    }--%>
<%--    // 是否有信息--%>
<%--    Object message = session.getAttribute("message");--%>
<%--    if (message != null) {--%>
<%--        out.println("<script>Toast('" + message.toString() + "')</script>");--%>
<%--    }--%>
<%--    session.removeAttribute("message");--%>
<%--%>--%>

</body>

</html>
